import request from '@/utils/request.js'

// 获取购物车列表 {{host}}/shop/cart/cart_list
/**
 * @param shop_id 商家id
*/
export const GetCartListApi = (params) => {
	return request('/shop/cart/cart_list', params)
}

// 加入购物车 {{host}}/shop/cart/add
/**
 * @param sku 商家 sku
 * @param num ( -1) 表示购物车数量(-1); (1)表示购物车数量(+1)
*/
export const AddToCartApi = (params) => {
	return request('/shop/cart/add', params)
}

// 删除购物车商品 {{host}}/shop/cart/del
/**
 * @param sku 商家sku ['S241106417','S241106417']
*/
export const DelToCartApi = (params) => {
	return request('/shop/cart/del', params)
}